Small documentation tweaks
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Apr 2020 21:17:58 +0000 (17:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Apr 2020 22:26:31 +0000 (18:26 -0400)
Update the docs for GtkWidget:can-focus and :focus-on-click.

gtk/gtkwidget.c

index 706fc5f0bec440946a6227f672148b997de7b396..50cdc28caf1f64a676ea2d45a6c1a31fa11e36c4 100644 (file)
@@ -974,6 +974,12 @@ gtk_widget_class_init (GtkWidgetClass *klass)
                             TRUE,
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
+  /**
+   * GtkWidget:can-focus:
+   *
+   * Whether the widget or any of its descendents can accept
+   * the input focus.
+   */
   widget_props[PROP_CAN_FOCUS] =
       g_param_spec_boolean ("can-focus",
                             P_("Can focus"),
@@ -1001,9 +1007,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
    * Whether the widget should grab focus when it is clicked with the mouse.
    *
    * This property is only relevant for widgets that can take focus.
-   *
-   * Before 3.20, several widgets (GtkButton, GtkFileChooserButton,
-   * GtkComboBox) implemented this property individually.
    */
   widget_props[PROP_FOCUS_ON_CLICK] =
       g_param_spec_boolean ("focus-on-click",